<%@ page language="java" pageEncoding="utf8"%>
<%@ page isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>InspectReport</title>
		<link href="tablecloth/tablecloth.css" rel="stylesheet"
			type="text/css" media="screen" />
		<script type="text/javascript" src="tablecloth/tablecloth.js"></script>
		<script type="text/javascript" src="js/splitpage.js"></script>
		<link href="css/splitpage.css" rel="stylesheet"
			type="text/css" media="screen" />
		<style type="text/css">
			<!--
			.STYLE1 {
				font-family: "宋体";
				font-size: small;
				color: #999999;
			}
			
			.STYLE2 {
				font-size: small
			}
			-->
		</style>
	</head>
	<body>
		<div align="center">
			<img src="image/temp.jpg" alt="首页" width="100%" height="70"
				align="middle">
		</div>
		<table width="100%" border="0" style="">
          <tr>
            <td width="50%"><span class="STYLE1">当前位置—<a href="redirect.do?method=welcome">首页</a>—巡检报告列表</span></td>
            <td width="50%"><div align="right" class="STYLE2">
			<a href="inspectreport.do?method=export">导出</a>&nbsp;<a href="redirect.do?method=welcome">首页</a>&nbsp;<a href="logout.do">退出 </a>
		</div></td>
          </tr>
        </table>
		
		<table cellspacing="0" cellpadding="0">
			<tr>
				<th>
					IP
				</th>
				<th>
					TOP_CPU
				</th>
				<th >
					AVG_CPU
				</th>
				<th>
					TOP_MEM
				</th>
				<th>
					AVG_MEM
				</th>
				<th>
					IOPS
				</th>
				<th>
					IOPF
				</th>
				<th>
					PRW
				</th>
				<th>
					DISK_USED
				</th>
				<th>
					DISK_TOTAL
				</th>
				<th>
					DATA_LENGTH
				</th>
				<th>
					DATA_INCREMENT
				</th>
				<th>
					CREATE_DATE
				</th>
			</tr>
			<c:forEach var="db" items="${map.dtoList}">
				<tr>
					<td>
						<a href="mgrmachine.do?method=mgrMachineList&ip=${db.ip}"><c:out value="${db.ip}" /></a>
					</td>
					<td>
						<c:out value="${db.topCpu}" />
					</td>
					<td>
						<c:out value="${db.avgCpu}" />
					</td>
					<td>
						<c:out value="${db.topMem}" />
					</td>
					<td>
						<c:out value="${db.avgMem}" />
					</td>
					<td>
						<c:out value="${db.iops}" />
					</td>
					<td>
						<c:out value="${db.iopf}" />
					</td>
					<td>
						<c:out value="${db.prw}" />
					</td>
					<td>
						<c:out value="${db.diskUsed}" />
					</td>
					<td>
						<c:out value="${db.diskTotal}" />
					</td>
					<td>
						<c:out value="${db.dataLength}" />
					</td>
					<td>
						<c:out value="${db.dataIncreament}" />
					</td>
					<td>
						<c:out value="${db.createDate}" />
					</td>
				</tr>
			</c:forEach>
		</table>
		<div id="pager" style="padding-top:10px;padding-bottom:10px;background-color:#328aa4;"></div>
		<script type="text/javascript">
			var pager = new PagerView('pager');
			pager.itemCount = "${map.totalCount}";
			pager.size = "${map.limit}";
			pager.index = "${map.index}";
			pager.onclick = function(index){
				window.location.href = "inspectreport.do?method=reportlist&index="+index;
			};
			pager.render();
		</script>
					
		
	</body>
</html>
